package Lession1;

public class Demo2 {
	

	public static void main(String[] args) {
		int a=0;
		int b=0;
		int c=0;
		
		
		for (int i = 100; i <=999; i++) {
			 a=i%10;
			 b=i/10%10;
			 c=i/100;
			 if (a*a*a+b*b*b+c*c*c==i) {
					System.out.println(i);
		}
		
			
		}
	}

}